package com.vshining.cryptoki.jna.pkcs11t;

import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

/**
 * @author Shining Wang <shiningwang@vshining.com>
 */
@SuppressWarnings("unused")
public class CK_WTLS_PRF_PARAMS extends Structure {
    NativeLong DigestMechanism;
    Pointer pSeed;
    NativeLong ulSeedLen;
    Pointer pLabel;
    NativeLong ulLabelLen;
    Pointer pOutput;
    Pointer pulOutputLen;

    @Override
    protected List getFieldOrder() {
        return Arrays.asList(
                "DigestMechanism",
                "pSeed",
                "ulSeedLen",
                "pLabel",
                "ulLabelLen",
                "pOutput",
                "pulOutputLen"
        );
    }
}
